using System;
using System.Collections;
using System.Windows.Forms;

namespace Publish.UserControl
{
    /// <summary>
    /// 自定义 TreeView 控件
    /// </summary>
    public class TreeViewCustom : TreeView
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public TreeViewCustom()
        {
            //设置双缓冲
            SetStyle(ControlStyles.DoubleBuffer |
                              ControlStyles.OptimizedDoubleBuffer |
                              ControlStyles.AllPaintingInWmPaint,
                              true);
            UpdateStyles();
        }
    }
}
